a11y: Use the appropriate GVariant for cache signals
authorEmmanuele Bassi <ebassi@gnome.org>
Thu, 19 Nov 2020 12:14:55 +0000 (12:14 +0000)
committerEmmanuele Bassi <ebassi@gnome.org>
Thu, 19 Nov 2020 12:14:55 +0000 (12:14 +0000)
We need to wrap the argument for AddAccessible and RemoveAccessible into
a tuple, as that's what GDBus expects.

gtk/a11y/gtkatspicache.c

index 31172d2cb6153e9313b722cbaa2a983d64f2737f..880a64cc5c85456b9d194e3101a7296f28a2cf0c 100644 (file)
@@ -185,7 +185,8 @@ emit_add_accessible (GtkAtSpiCache   *self,
                                  self->cache_path,
                                  "org.a11y.atspi.Cache",
                                  "AddAccessible",
-                                 g_variant_builder_end (&builder),
+                                 g_variant_new ("(@(" ITEM_SIGNATURE "))",
+                                   g_variant_builder_end (&builder)),
                                  NULL);
 }
 
@@ -198,7 +199,7 @@ emit_remove_accessible (GtkAtSpiCache *self,
                                  self->cache_path,
                                  "org.a11y.atspi.Cache",
                                  "RemoveAccessible",
-                                 ref,
+                                 g_variant_new ("(@(so))", ref),
                                  NULL);
 }